# GnuMake  fastcgi

CC		= dmc
LIBR	= lib
CFLAG	= -Iinclude  -o -mn -c
CPFLAG	= -IZ:\dm\stlport


FCGI_LIB	= fcgi.lib
C_OBJ		= $(patsubst %.c, %.obj, $(wildcard *.c))
CPP_OBJ		= $(patsubst %.cpp, %.cpp.obj, $(wildcard  *.cpp))

ALL: $(FCGI_LIB)

%.obj: %.c 
	$(CC) $(CFLAG)  $^ -o$@

%.cpp.obj: %.cpp
	$(CC) $(CFLAG) $(CPFLAG) $^ -o$@

$(FCGI_LIB) : $(C_OBJ) 
	$(LIBR) -c $@ $^

clean:
	del /S /Q *.obj *.def *.map *.bak
